{% extends "base.html" %}{% load i18n %} {% block title %}{% if contact %}{% blocktranslate trimmed with name=contact.name %}Edit {{ name }}{% endblocktranslate %}{% else %}{% translate "Add contact" %}{% endif %}{% endblock %} {% block content %}

{% if contact %}{% blocktranslate trimmed with name=contact.name %}Edit {{ name }}{% endblocktranslate %}{% else %}{% translate "Add contact" %}{% endif %}

{% if not contact %}

{% translate "If someone with this phone number in the same region is already registered, their call screen opens instead." %}

{% endif %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors|join:" " }}
{% endif %}
{% include "_field.html" with field=form.first_name %} {% include "_field.html" with field=form.last_name %} {% include "_field.html" with field=form.phone %} {% if form.alt_phone %}{% include "_field.html" with field=form.alt_phone %}{% endif %} {% include "_field.html" with field=form.region %} {% include "_field.html" with field=form.district %} {% include "_field.html" with field=form.heard_from %} {% include "_field.html" with field=form.heard_from_detail %} {% include "_field.html" with field=form.status %} {% include "_field.html" with field=form.language %} {% include "_field.html" with field=form.gender %} {% if form.care_agent %}{% include "_field.html" with field=form.care_agent %}{% endif %} {% if form.cell_group %}{% include "_field.html" with field=form.cell_group %}{% endif %} {% if not contact %}
{% translate "Care agent" %}
{{ user.display_name }}
{% translate "The person who adds a caller looks after them." %}
{% endif %} {% include "_field.html" with field=form.notes wide=True %} {% if form.do_not_call %}{% include "_field.html" with field=form.do_not_call wide=True %}{% endif %}
{% if contact %} {% translate "Cancel" %} {% else %} {% translate "Cancel" %} {% endif %}
{% endblock %}